/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmPembayaranPasien.java
 *
 * Created on Jan 24, 2012, 11:48:47 AM
 */
package SIMRS.Kasir.view;

import usu.widget.Form;

/**
 *
 * @author yunniie
 */
public class frmPembayaranPasien extends Form {

    /** Creates new form frmPembayaranPasien */
    public frmPembayaranPasien() {
        initComponents();
        setIconImage(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/icon.png")).getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        pnlUnder1 = new SIMRS.Kasir.widget.PnlUnder();
        btBatal = new SIMRS.Kasir.widget.button2();
        btCetak = new SIMRS.Kasir.widget.button2();
        jPanel3 = new javax.swing.JPanel();
        label9 = new SIMRS.Kasir.widget.Label();
        txtSisaTagih = new SIMRS.Kasir.widget.TextBox();
        txtBayar = new SIMRS.Kasir.widget.TextBox();
        label8 = new SIMRS.Kasir.widget.Label();
        label6 = new SIMRS.Kasir.widget.Label();
        txtDiscount = new SIMRS.Kasir.widget.TextBox();
        label7 = new SIMRS.Kasir.widget.Label();
        txtTotal = new SIMRS.Kasir.widget.TextBox();
        scrollPane1 = new SIMRS.Kasir.widget.ScrollPane();
        table1 = new SIMRS.Kasir.widget.Table();
        jPanel1 = new javax.swing.JPanel();
        txtNoRM = new SIMRS.Kasir.widget.TextBox();
        label3 = new SIMRS.Kasir.widget.Label();
        txtNoRegistrasi = new SIMRS.Kasir.widget.TextBox();
        label2 = new SIMRS.Kasir.widget.Label();
        txtRuanganTerakhir = new SIMRS.Kasir.widget.TextBox();
        label5 = new SIMRS.Kasir.widget.Label();
        label4 = new SIMRS.Kasir.widget.Label();
        txtNama = new SIMRS.Kasir.widget.TextBox();
        label1 = new SIMRS.Kasir.widget.Label();
        btClose = new SIMRS.Kasir.widget.button2();
        btSimpan = new SIMRS.Kasir.widget.button2();

        setTitle("Form Pembayaran Pasien");
        setAnimationHide(usu.widget.constan.Animation.SHOW_FROM_LEFT);
        setAnimationShow(usu.widget.constan.Animation.HIDE_TO_RIGHT);
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        pnlUnder1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        btBatal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/bt_batal.png"))); // NOI18N
        btBatal.setText("Batal");
        pnlUnder1.add(btBatal, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 480, -1, -1));

        btCetak.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/bt_cetak.png"))); // NOI18N
        btCetak.setText("Cetak Kuitansi");
        pnlUnder1.add(btCetak, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 480, -1, -1));

        jPanel3.setBackground(new java.awt.Color(204, 204, 204));
        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        label9.setText("Sisa Tagih");
        jPanel3.add(label9, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 10, 89, -1));

        txtSisaTagih.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtSisaTagihActionPerformed(evt);
            }
        });
        jPanel3.add(txtSisaTagih, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 30, 100, 30));

        txtBayar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtBayarActionPerformed(evt);
            }
        });
        jPanel3.add(txtBayar, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 30, 100, 30));

        label8.setText("Bayar");
        jPanel3.add(label8, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 10, 89, -1));

        label6.setText("Discount");
        jPanel3.add(label6, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 10, 89, -1));

        txtDiscount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDiscountActionPerformed(evt);
            }
        });
        jPanel3.add(txtDiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 30, 100, 30));

        label7.setText("Total Biaya");
        jPanel3.add(label7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, 89, -1));
        jPanel3.add(txtTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 99, 30));

        pnlUnder1.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 390, 530, 80));

        table1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrollPane1.setViewportView(table1);

        pnlUnder1.add(scrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 220, 530, 160));

        jPanel1.setBackground(new java.awt.Color(204, 204, 204));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        jPanel1.add(txtNoRM, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, 100, -1));

        label3.setText("No RM");
        jPanel1.add(label3, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 20, 44, -1));
        jPanel1.add(txtNoRegistrasi, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, 89, -1));

        label2.setText("No Registrasi");
        jPanel1.add(label2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 89, -1));
        jPanel1.add(txtRuanganTerakhir, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 40, 110, -1));

        label5.setText("Ruangan Terakhir");
        jPanel1.add(label5, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 20, -1, -1));

        label4.setText("Nama");
        jPanel1.add(label4, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 20, 49, -1));
        jPanel1.add(txtNama, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 40, 170, -1));

        pnlUnder1.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 130, 530, 80));

        label1.setForeground(new java.awt.Color(255, 255, 255));
        label1.setText("Data Pembayaran Pasien");
        label1.setFont(new java.awt.Font("Tahoma", 1, 18));
        pnlUnder1.add(label1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, 240, -1));

        btClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/bt_close.png"))); // NOI18N
        btClose.setText("Tutup");
        btClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btCloseActionPerformed(evt);
            }
        });
        pnlUnder1.add(btClose, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 480, -1, -1));

        btSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/bt_simpan.png"))); // NOI18N
        btSimpan.setText("Simpan");
        btSimpan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSimpanActionPerformed(evt);
            }
        });
        pnlUnder1.add(btSimpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 480, -1, -1));

        getContentPane().add(pnlUnder1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 570, 530));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-581)/2, (screenSize.height-560)/2, 581, 560);
    }// </editor-fold>//GEN-END:initComponents

private void txtDiscountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDiscountActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_txtDiscountActionPerformed

private void txtSisaTagihActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSisaTagihActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_txtSisaTagihActionPerformed

private void txtBayarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtBayarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_txtBayarActionPerformed

private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing

}//GEN-LAST:event_formWindowClosing

private void btCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCloseActionPerformed
    dispose();
}//GEN-LAST:event_btCloseActionPerformed

    private void btSimpanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSimpanActionPerformed
        frmDaftarPasienSudahBayar x = new frmDaftarPasienSudahBayar();
        x.show();
        dispose();
    }//GEN-LAST:event_btSimpanActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private SIMRS.Kasir.widget.button2 btBatal;
    private SIMRS.Kasir.widget.button2 btCetak;
    private SIMRS.Kasir.widget.button2 btClose;
    private SIMRS.Kasir.widget.button2 btSimpan;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private SIMRS.Kasir.widget.Label label1;
    private SIMRS.Kasir.widget.Label label2;
    private SIMRS.Kasir.widget.Label label3;
    private SIMRS.Kasir.widget.Label label4;
    private SIMRS.Kasir.widget.Label label5;
    private SIMRS.Kasir.widget.Label label6;
    private SIMRS.Kasir.widget.Label label7;
    private SIMRS.Kasir.widget.Label label8;
    private SIMRS.Kasir.widget.Label label9;
    private SIMRS.Kasir.widget.PnlUnder pnlUnder1;
    private SIMRS.Kasir.widget.ScrollPane scrollPane1;
    private SIMRS.Kasir.widget.Table table1;
    private SIMRS.Kasir.widget.TextBox txtBayar;
    private SIMRS.Kasir.widget.TextBox txtDiscount;
    private SIMRS.Kasir.widget.TextBox txtNama;
    private SIMRS.Kasir.widget.TextBox txtNoRM;
    private SIMRS.Kasir.widget.TextBox txtNoRegistrasi;
    private SIMRS.Kasir.widget.TextBox txtRuanganTerakhir;
    private SIMRS.Kasir.widget.TextBox txtSisaTagih;
    private SIMRS.Kasir.widget.TextBox txtTotal;
    // End of variables declaration//GEN-END:variables
}
